import Toybox.Lang;
import Toybox.System;
import Toybox.WatchUi;
import Toybox.Application;

class NovelMenuDelegate extends WatchUi.MenuInputDelegate {

    function initialize() {
        MenuInputDelegate.initialize();
    }

    function onMenuItem(item as Symbol) as Void {
        if (item == :item_1) {
            System.println("item 1");
        } else if (item == :item_2) {
            System.println("item 2");
        } else if (item == :font_tiny) {
            Application.Storage.setValue("fontSize", Graphics.FONT_XTINY);
            WatchUi.popView(WatchUi.SLIDE_DOWN);
        } else if (item == :font_small) {
            Application.Storage.setValue("fontSize", Graphics.FONT_SMALL);
            WatchUi.popView(WatchUi.SLIDE_DOWN);
        } else if (item == :font_medium) {
            Application.Storage.setValue("fontSize", Graphics.FONT_MEDIUM);
            WatchUi.popView(WatchUi.SLIDE_DOWN);
        } else if (item == :font_large) {
            Application.Storage.setValue("fontSize", Graphics.FONT_LARGE);
            WatchUi.popView(WatchUi.SLIDE_DOWN);
        }
    }

}